package cn.tedu.sp09.goods.dao;

import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;

import cn.tedu.sp09.good.dao.GoodsDao;

@SpringBootTest
public class GoodDao {

	@Autowired
private GoodsDao goodsDao;
	@Test
  void testDeleteById() {
	  int rows = goodsDao.deleteById(10);
	  System.out.println("delete.rows="+rows);
  }
	@Test
	void testdeleteObjects() {
		//执行goodsDao.deleteObjects方法时候，系统会：
		//1  基于接口类全名找到与其命名空间（namespace）对应的映射文件
		int rows= goodsDao.deleteObjects();
		System.out.println("delete.rows="+rows);
	}
}	
